<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?>
<div class="register_box" style="display:none;">
    <form action="<?php echo base_url(); ?>authentication/register/register_data" method="post">

        <table width="320px">
            <tr>
                <td><div class="form-group has-error"><input type="text" name="fname" value="<?php
                        $fname = "";
                        if (form_error('fname')) {
                            set_value('');
                            $fname = "class='form-control' id='inputError'";
                        } else {
                            echo set_value('fname');
                        }
                        ?>" placeholder="First name" required="" style="width:200px;" <?php echo $fname ?>/></div></td>
            </tr>

            <tr>
                <td> <?php echo "<font color='red' size='1'>" . form_error('fname') . '</font>' ?></td>
            </tr>

            <tr>

                <td><div class="form-group has-error"><input type="text" name="lname" value="<?php
                        $lname = "";
                        if (form_error('lname')) {
                            set_value('');
                            $lname = "class='form-control' id='inputError'";
                        } else {
                            echo set_value('lname');
                        }
                        ?>" placeholder="Last name" required="" style="width:200px;" <?php echo $lname ?>/></div></td>

            </tr>

            <tr>
                <td> <?php echo "<font color='red' size='1'>" . form_error('lname') . '</font>' ?></td>
            </tr>

            <tr>
                <td>
                    &nbsp; Male <input type="radio" name="gender" checked="checked" value="male">
                    Female <input type="radio" name="gender" value="female">
                </td>
            </tr>

            <tr>
                <td>&nbsp;</td>
            </tr>

            <tr>

                <td><div class="form-group has-error"><input type="text" name="phone" placeholder="Phone Number" value="<?php
                        $phone = "";
                        if (form_error('phone')) {
                            set_value('');
                            $phone = "class='form-control' id='inputError'";
                        } else {
                            echo set_value('phone');
                        }
                        ?>"
                                                             required="" style="width:200px;" <?php echo $phone ?>/></div></td>
            </tr>

            <tr>
                <td> <?php echo "<font color='red' size='1'>" . form_error('phone') . '</font>' ?></td>
            </tr>

            <tr>

                <td><div class="form-group has-error"><input type="email" name="email" placeholder="Email" value="<?php
                        $email = "";
                        if (form_error('email')) {
                            set_value('');
                            $email = "class='form-control' id='inputError'";
                        } else {
                            echo set_value('email');
                        }
                        ?>"
                                                             required="" style="width:200px;" <?php echo $email ?>/><div></td>
                            </tr>

                            <tr>
                                <td> <?php echo "<font color='red' size='1'>" . form_error('email') . '</font>' ?></td>
                            </tr>

                            <tr>
                                <?php
                                $password = "";
                                if (form_error('password')) {
                                    set_value('');
                                    $password = "class='form-control' id='inputError'";
                                }
                                ?>
                                <td><div class="form-group has-error"><input type="password" name="password" placeholder="Password" required="" style="width:200px;" <?php echo $password ?>/></div></td>
                            </tr>

                            <tr>
                                <td> <?php echo "<font color='red' size='1'>" . form_error('password') . '</font>' ?></td>
                            </tr>

                            <tr>
                                <?php
                                $passwordcon = "";
                                if (form_error('passwordcon')) {
                                    set_value('');
                                    $passwordcon = "class='form-control' id='inputError'";
                                }
                                ?>
                                <td><div class="form-group has-error"><input type="password" name="passwordcon" placeholder="Confirm Password" required="" style="width:200px;" <?php echo $passwordcon ?>/></div></td> 
                            </tr>

                            <tr>
                                <td> <?php echo "<font color='red' size='1'>" . form_error('passwordcon') . '</font>' ?></td>
                            </tr>

                            <tr>
                                <td><div class="form-group has-error">
                                    <?php
                                                             $message = "";
                                    if ($this->session->userdata('message')) {

                                        $message = "class='form-control' id='inputError'";
                                    }
                                    echo $captcha_img;
                                    echo "<br/>";
                                    echo form_input('text', '', 'required=""'.$message);
                                    echo "<br/>";

           
                                    ?></div>
                                </td>
                            </tr>

                            <tr>
                                <td>
                                    <input type="submit" />                          
                                    <input type="reset" name="reset" value="Reset" class="btn btn-primary"/>
                                </td>
                            </tr>

                            </table>
                            </form>
                        </div>


